#!/usr/bin/env python
import roslib

roslib.load_manifest("supergo_bringup")
import rospy
from supergo_bringup.msg import SuperbotEvents


def talker():
    pub = rospy.Publisher('superbotec', SuperbotEvents, queue_size=10)
    rospy.init_node('supergo_eventcetner', anonymous=True)
    r = rospy.Rate(1)  # 10hz
    msg = SuperbotEvents()
    #msg.header.stamp = rospy.get_time()
    clock5_float = float(200)
    msg.clock5 = clock5_float
    msg.clock12 = float(100)

    while not rospy.is_shutdown():
        rospy.loginfo(msg)
        pub.publish(msg)
        r.sleep()


if __name__ == '__main__':
    try:
        talker()
    except rospy.ROSInterruptException:
        pass
